package com.ruoyi.user.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.base.BaseEntity;

/**
 * APP用户表 usr_user
 * 
 * @author ruoyi
 * @date 2018-12-14
 */
public class User extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 登录账号 */
	private String account;
	/** 手机号码 */
	private String phone;
	/** 真实姓名 */
	private String name;
	/** 昵称 */
	private String nickName;
	/** 0-男，1-女 */
	private Integer sex;
	/** 出生日期 */
	private Date birthday;
	/** 头像地址 */
	private String headPic;
	/** 血压值 */
	private String bloodVal;
	/** 目标步数 */
	private Integer stepGoal;
	/** 睡眠指标（分钟） */
	private Integer sleepGoal;
	/** 身高（CM） */
	private Integer height;
	/** 体重（KG） */
	private Integer weight;
	/** 血型 */
	private String bloodType;
	/** 病史 */
	private String medicalHistory;
	/** 密码 */
	private String password;
	/** 账号状态：0-冻结，1-正常 */
	private Integer status;
	/** vip用户(0-否，1-是) */
	private Integer isVip;
	/** vip有效时间 */
	private Date vipTime;
	/** vip类型(1:包月,2:VIP-A,3:VII-A,4:VII-B,5:VII-C) */
	private Integer vipType;
	/** 微信unionid */
	private String unionid;
	/** openid */
	private String openid;
	/**注册来源(0-平台，1-微信，2-QQ) */
	private Integer source;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;
	/** 假删除（0-正常，1-删除） */
	private Integer enabled;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setAccount(String account) 
	{
		this.account = account;
	}

	public String getAccount() 
	{
		return account;
	}
	public void setPhone(String phone) 
	{
		this.phone = phone;
	}

	public String getPhone() 
	{
		return phone;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setNickName(String nickName) 
	{
		this.nickName = nickName;
	}

	public String getNickName() 
	{
		return nickName;
	}
	public void setSex(Integer sex) 
	{
		this.sex = sex;
	}

	public Integer getSex() 
	{
		return sex;
	}
	public void setBirthday(Date birthday) 
	{
		this.birthday = birthday;
	}

	public Date getBirthday() 
	{
		return birthday;
	}
	public void setHeadPic(String headPic) 
	{
		this.headPic = headPic;
	}

	public String getHeadPic() 
	{
		return headPic;
	}
	public void setBloodVal(String bloodVal) 
	{
		this.bloodVal = bloodVal;
	}

	public String getBloodVal() 
	{
		return bloodVal;
	}
	public void setStepGoal(Integer stepGoal) 
	{
		this.stepGoal = stepGoal;
	}

	public Integer getStepGoal() 
	{
		return stepGoal;
	}
	public void setSleepGoal(Integer sleepGoal) 
	{
		this.sleepGoal = sleepGoal;
	}

	public Integer getSleepGoal() 
	{
		return sleepGoal;
	}
	public void setHeight(Integer height) 
	{
		this.height = height;
	}

	public Integer getHeight() 
	{
		return height;
	}
	public void setWeight(Integer weight) 
	{
		this.weight = weight;
	}

	public Integer getWeight() 
	{
		return weight;
	}
	public void setBloodType(String bloodType) 
	{
		this.bloodType = bloodType;
	}

	public String getBloodType() 
	{
		return bloodType;
	}
	public void setMedicalHistory(String medicalHistory) 
	{
		this.medicalHistory = medicalHistory;
	}

	public String getMedicalHistory() 
	{
		return medicalHistory;
	}
	public void setPassword(String password) 
	{
		this.password = password;
	}

	public String getPassword() 
	{
		return password;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	
	public Integer getVipType() {
		return vipType;
	}

	public void setVipType(Integer vipType) {
		this.vipType = vipType;
	}

	public Integer getIsVip() {
		return isVip;
	}

	public void setIsVip(Integer isVip) {
		this.isVip = isVip;
	}

	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setEnabled(Integer enabled) 
	{
		this.enabled = enabled;
	}

	public Integer getEnabled() 
	{
		return enabled;
	}
	
    public Date getVipTime() {
		return vipTime;
	}

	public void setVipTime(Date vipTime) {
		this.vipTime = vipTime;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("account", getAccount())
            .append("phone", getPhone())
            .append("name", getName())
            .append("nickName", getNickName())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("headPic", getHeadPic())
            .append("bloodVal", getBloodVal())
            .append("stepGoal", getStepGoal())
            .append("sleepGoal", getSleepGoal())
            .append("height", getHeight())
            .append("weight", getWeight())
            .append("bloodType", getBloodType())
            .append("medicalHistory", getMedicalHistory())
            .append("password", getPassword())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("enabled", getEnabled())
            .toString();
    }
}
